<?php
	$tel = $_REQUEST['tel']	;
	$token = $_REQUEST['token'];
$con = mysqli_connect('localhost','root','','friday');
mysqli_set_charset($con,'utf8');
 
     if($token==1){	
	 $sql ="select * from recadress"	;	
		$result = mysqli_query($con, $sql);
		$arr = mysqli_fetch_all($result,MYSQLI_ASSOC);
		$str = json_encode($arr);
		echo $str;
     }else{	
	 $sql ="select * from recadress limit 4"	;	
		$result = mysqli_query($con, $sql);
		$arr = mysqli_fetch_all($result,MYSQLI_ASSOC);
		$str = json_encode($arr);
		echo $str;
     }
 
		
	
	
	
	
	
	
	
	
	
	
	
?>